import { Sprite } from "@pixi/sprite";
var SoldierType;
(function (SoldierType) {
    SoldierType[SoldierType["bubing"] = 0] = "bubing";
    SoldierType[SoldierType["qiangbing"] = 1] = "qiangbing";
    SoldierType[SoldierType["gongjianshou"] = 2] = "gongjianshou";
    SoldierType[SoldierType["qibing"] = 3] = "qibing";
    SoldierType[SoldierType["shuishou"] = 4] = "shuishou";
    SoldierType[SoldierType["toushiche"] = 5] = "toushiche";
})(SoldierType || (SoldierType = {}));
export class Chess extends Sprite {
    constructor() {
        super();
        this.name = "棋子";
        // 兵种
        this.soldier = SoldierType.bubing;
        // 兵数
        this.soldierNum = 0;
        // 行动力
        this.active = 0;
        // 加成
        this.buff = [];
    }
    init() {
        this.on("mousedown", () => {
            console.log(`${this.name}被选中`);
        });
    }
}
